package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.MonitorVideo;
import com.ruoyi.system.domain.MonitorVideoDetail;
import com.ruoyi.system.mapper.MonitorVideoDetailMapper;
import com.ruoyi.system.service.MonitorVideoDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (MonitorVideoDetail)表服务实现类
 *
 * @author makejava
 * @since 2020-10-21 09:47:23
 */
@Service("monitorVideoDetailService")
public class MonitorVideoDetailServiceImpl implements MonitorVideoDetailService {
    @Resource
    private MonitorVideoDetailMapper monitorVideoDetailMapper;

    /**
     * 视频监控详情添加
     *
     * @param monitorVideoDetails 视频数据
     */
    @Override
    public void monitorVideoDetailAdd(List<MonitorVideoDetail> monitorVideoDetails) {
        monitorVideoDetailMapper.monitorVideoDetailAdd(monitorVideoDetails);
    }

    /**
     * 监控视频的全部数据
     */
    public List<MonitorVideoDetail> listById(String id) {
        return monitorVideoDetailMapper.listById(id);
    }

    @Override
    public List<MonitorVideoDetail> monitoryVideoDetailList(String itemId) {
        return monitorVideoDetailMapper.monitoryVideoDetailList(itemId);
    }

    @Override
    public MonitorVideoDetail getOne(String itemId) {
        return monitorVideoDetailMapper.getOne(itemId);
    }
}
